Returns the distance between location location0 and location1. Benutzt im Gegensatz zur originalen Funktion den Z-Wert.